From: Gerd Moellmann Date: Tue, 8 May 2001 11:25:01 +0000 (+0000) Subject: (enter_namespace): Fix reallocation of X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40423 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f69bd9e6887dee45480ddb958d09e96c3aad2f11;p=emacs.git (enter_namespace): Fix reallocation of namespace_stack. --- diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index bed64376a27..90388273cec 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c @@ -1156,8 +1156,9 @@ enter_namespace (name) if (namespace_sp == namespace_stack_size) { int size = max (10, 2 * namespace_stack_size); - namespace_stack = (struct sym **) xrealloc ((void *)namespace_stack, - size); + namespace_stack + = (struct sym **) xrealloc ((void *)namespace_stack, + size * sizeof *namespace_stack); namespace_stack_size = size; }